package com.jt.config;

import com.jt.demo.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;


@Configuration  //标识这是配置类
@ComponentScan("com.jt")

public class SpringConfig {
   @Bean
   @Scope("prototype")



    public User user(){
        return new User();
    }
}
